package org.eminem.cloud.registereureakamoviefeignhystrix.controller;

import org.eminem.cloud.registereureakamoviefeignhystrix.domain.User;
import org.springframework.stereotype.Component;

@Component
public class FeignClientFallBack implements UserFeignClient {

    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(-1L);
        user.setUsername("默认用户");
        return user;
    }
}
